package com.qiaofang.collectmanage.dao;
/**
 * @Author:   yi.li
 */
import com.qiaofang.collectmanage.dao.domain.CollectRule;
import com.qiaofang.collectmanage.stub.bean.CrawlerCollectRuleDTO;
import com.qiaofang.collectmanage.stub.bean.SearchCollectRulePostDTO;
import com.qiaofang.common.model.page.PageDTO;

import java.util.List;

public interface CollectRuleDao {

    public CollectRule getCollectRuleById(Integer id);

    int updateCollectRule(CollectRule collectRule);

    int removeCollectRule(Integer id);

    List<CollectRule> listCollectRule(CollectRule collectRule);

    void saveCollectRule(CollectRule collectRule);

    public CollectRule getCollectRule(CollectRule collecRule);

    List<CollectRule> searchCollectRulePage(SearchCollectRulePostDTO searchCollectRulePostDTO, PageDTO page);

    Long countSearchCollectRulePage(SearchCollectRulePostDTO dto);

    int saveCollectRuleBatch(List<CollectRule> collectRuleList);

    CollectRule getCollectRuleByUuid(String uuid);

    com.qiaofang.collectmanage.domain.CollectRule findById(CollectRule rule);

    CrawlerCollectRuleDTO findCrawlerCollectRuleById(CollectRule rule);


    List<String> getCitys();

    List<String> getSources();

   List<CollectRule> getListByCollectRule(CollectRule collectRule);

    void inputCityDataToDbByUuid(List<String> uuids);

    List<CollectRule> findAllBySourceAndCollectType(String source, String collectType);

    public List<CollectRule> listCollectRuleByUuids(List<String> uuidList);
}
